package com.example.demo.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

/**
 * @author 陈浩
 * @date 2021/1/9 16:17
 */
@Data
public class MyTestClass {
    private String string;

    private Byte b;

    private Short s;

    private Integer i;

    private Long l;

    private Float f;

    private Double d;

    private Boolean bol;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    @DateTimeFormat(pattern = "HH:mm:ss")
    private LocalTime localTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate localDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime localDateTime;

}
